package org.ym.file.domain.model.files;

import lombok.*;
import org.ym.database.hibernate.base.BaseModel;
import org.ym.file.domain.model.files.embed.FileInfo;
import org.ym.file.domain.model.files.embed.FileStoreInfo;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ym
 */
@Entity
@Table(name = "f_sys_file")
@Getter(AccessLevel.PROTECTED)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SysFile extends BaseModel {
    private static final long serialVersionUID = 5480650253882564784L;
    /**
     * 文件信息
     */
    @Embedded
    private FileInfo fileInfo;
    /**
     * 文件存储信息
     */
    @Embedded
    private FileStoreInfo fileStoreInfo;
}
